import Watermark from './watermark';
import img from './images/lb.jpeg';

const watermark = new Watermark({
  content: 'Hello World!',
  // verify: 'Hello World!',
  // fontWeight: 400,
  // fontSize: 16,
  // fontFamily: 'microsoft yahei,Tahoma,"\\5B8B\\4F53",Arial,Helvetica,sans-serif',
  // color: 'red',
  // alpha: 0.2,
  // width: 300,
  // height: '190',
  // rotate: '330',
  // zIndex: '1',
  // onWatermarkNull: () => {
  //   window.open('https://www.baidu.com/');
  // },
});
watermark.create();

const imgDom = document.createElement('img');
imgDom.src = img;
document.body.appendChild(imgDom);
